package com.smiier.skin.net;

import android.content.Context;
import cn.o.app.json.JSONField;
import cn.o.app.json.JsonDate;
import cn.o.app.net.NetTask;

import com.smiier.skin.constant.Constant;
import com.smiier.skin.net.DoctorUserSetTask.DoctorUserSetRequest;
import com.smiier.skin.net.DoctorUserSetTask.DoctorUserSetResponse;
import com.smiier.skin.net.entity.User;
import com.smiier.skin.util.GlobalSettings;

public class DoctorUserSetTask extends
		NetTask<DoctorUserSetRequest, DoctorUserSetResponse> {

	public static class DoctorUserSetRequest extends ORequest {
		public String token;
		public String Mobile;
		public String appname = Constant.APP_NAME;
		@JSONField(format = "yyyy-MM-dd HH:mm:ss")
		public JsonDate visiting_time;
	}

	public static class DoctorUserSetResponse extends OResponse {
		public User Res;
	}

	@Override
	public void setContext(Context context) {
		super.setContext(context);
		mUrl = GlobalSettings.SERVER_URL + GlobalSettings.SERVER_URL_JOIN
				+ "?api=Doctor.User.Set";
		mRequestMethod = METHOD_GET;
	}
}
